package com.lancoo.cvas.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lancoo.cvas.entity.RuleTeacherTime;
import com.lancoo.cvas.mapper.RuleTeacherTimeMapper;
import com.lancoo.cvas.pojo.common.Deleted;
import com.lancoo.cvas.service.RuleTeacherTimeService;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("ruleTeacherTimeService")
public class RuleTeacherTimeServiceImpl extends ServiceImpl<RuleTeacherTimeMapper, RuleTeacherTime> implements RuleTeacherTimeService {


    @Override
    public List<String> getProhibitByTeachingClass(List<Long> ids) {
        return baseMapper.getProhibitByTeachingClass(ids, Deleted.NOT.getCode(),2);
    }

    @Override
    public List<String> getTeacherProhibitByTeachingClass(Integer taskId, Long teachingClassId) {
        return baseMapper.getTeacherProhibitByTeachingClass(taskId,teachingClassId, Deleted.NOT.getCode(),2);
    }

}